home *** CD-ROM | disk | FTP | other *** search
- #include "const.h"
- #include "globals.h"
- #include "utils.h"
-
- void PatchTrap(short trapWord,short trapType,ProcPtr newAddress,Ptr *linkAddress)
- {
- newAddress = StripAddress((Ptr)newAddress);
- *linkAddress = (Ptr)NGetTrapAddress(trapWord,trapType);
- NSetTrapAddress((long)newAddress,trapWord,trapType);
- }
-
-
- void __GetA4(void)
- {
- asm {
- bsr.s @1
- dc.l 0 ; store A4 here
- @1 move.l (sp)+,a1
- }
- }
-